ConcurrentQueue(T) Class

Task Parallel System.Threading

Represents a thread-safe first-in, first-out collection of objects.

Namespace:  System.Collections.Concurrent
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
<ComVisibleAttribute(False)> _
<HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization := True,  _
	ExternalThreading := True)> _
Public Class ConcurrentQueue(Of T) _
	Implements IProducerConsumerCollection(Of T), IEnumerable(Of T),  _
	ICollection, IEnumerable
C#
[SerializableAttribute]
[ComVisibleAttribute(false)]
[HostProtectionAttribute(SecurityAction.LinkDemand, Synchronization = true, 
	ExternalThreading = true)]
public class ConcurrentQueue<T> : IProducerConsumerCollection<T>, 
	IEnumerable<T>, ICollection, IEnumerable

Type Parameters

T
Specifies the type of elements in the queue.

Remarks

All public and protected members of ConcurrentQueue<(Of <(T>)>) are thread-safe and may be used concurrently from multiple threads.

Inheritance Hierarchy

System..::.Object
  System.Collections.Concurrent..::.ConcurrentQueue<(Of <(T>)>)

See Also